package com.jiuqi.sportplay.dao;

import com.jiuqi.sportplay.bean.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import javax.lang.model.element.NestingKind;
import java.util.List;

@Repository
public interface UserDao {

    //显示数据信息
    public User getUserByMassage(@Param("username") String username, @Param("password") String password);

    public List<User> getAllUser(@Param("username") String username,
                                 @Param("pageStart") int pageStart,
                                 @Param("pageSize") int pageSize);

    public int getUserCounts(@Param("username") String username);
    //更改用户状态
    public int updateState(Integer id,Boolean state);
    //添加用户
    public int addUser(User user);
    //删除用户
    public int deleteUser(int id);
    public User getUpdateUser(int id);
    public int editUser(User user);
}
